<?php
namespace App\Services\Wxpay\Pay;
use App\Services\Wxpay\Sdk\Api;

/**
 *
 * 推送微信支付单到海关
 *
 */
class PushCustoms
{

	protected $config;

	protected $api;

	public function __construct($config)
	{
		$this->config = $config;
		$this->api = new Api($config);
	}


	/**
	 *
	 * 推送订单
	 * @param PushInput $input
	 */
	public function push($input)
	{
		$result = $this->api->pushCustoms($input);
		return $result;
	}
}